@echo off 

IF %1.==. GOTO No1
IF %2.==. GOTO No2
IF %3.==. GOTO No3
... do stuff...
GOTO Begin

:No1
  ECHO No param 1
  pause
GOTO Endend
:No2
  ECHO No param 2
  pause
GOTO Endend
:No3
  ECHO No param 3
  pause
GOTO Endend


:Begin

set stra=Hello World!!!
set strb=Here is YOLOv5 tag v6.1 Training Workflow
::set datayaml=datavit.yaml
::set datayaml=coco128.yaml
set datayaml=%1
set modelyaml=yolov5s.yaml
set epochnum=200

echo %stra% 
echo;
ping -n 3 127.0.0.1>nul
echo %strb% 
echo;
ping -n 5 127.0.0.1>nul

echo === data loaded    as  %datayaml%   ===
timeout /t 6
echo === model loaded   as  %modelyaml%  ===
timeout /t 6
echo === epoch number   is  %epochnum%  ===
timeout /t 6


python train.py --epoch %epochnum% ^
--data ./data/%datayaml% ^
--cfg ./models/%modelyaml% 

:: notes
:: --resume

GOTO Endend
:Endend